package routers

import (
	"github.com/gin-gonic/gin"
	"go-blog/internal/routers/api/v1"
)

func NewRouter() *gin.Engine {

	r := gin.New()

	// 简单的路由组: v1
	apiv1 := r.Group("/api/v1")
	apiv1.Use()
	{
		apiv1.GET("/tag/list", v1.List)
		apiv1.POST("/tag/created", v1.Created)
		apiv1.POST("/tag/updated", v1.Update)
		apiv1.DELETE("/tag/del", v1.Del)
	}

	return r
}
